import { IsNotEmpty, IsString, Length } from 'class-validator'

export class CreateArticleDto {
    @IsNotEmpty({ message: 'uuid不能为空' })
    uuid: string;

    title: string;

    content: string;

    tags?: Array<string>;

    category: Array<string>;

    author: string;

    publish_status: number;

    introduction: string;

    right: string;

    views?: number;

    likes?: number;

    collections?: number;
}
